/**
 * 
 */
package com.aaron.client;

import com.google.gwt.core.client.GWT;
import com.google.gwt.user.client.rpc.AsyncCallback;
import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.ServiceDefTarget;
import java.util.*;

/**
 * @author aaron
 *
 */
public interface ProjectService extends RemoteService {

	public static final String SERVICE_URI = "/VivCode/project";

	public static class Util {

		public static ProjectServiceAsync getInstance() {

			ProjectServiceAsync instance = (ProjectServiceAsync) GWT
					.create(ProjectService.class);
			ServiceDefTarget target = (ServiceDefTarget) instance;
			target.setServiceEntryPoint(SERVICE_URI);
			return instance;
		}
	}
	public void deleteProject(String name, String auth);
	public void renameProject(String name, String new_name, String auth);
	public ArrayList getCollaborators(String name, String auth);
	public void setCollaborators(ArrayList collaborators, String project_name, String auth);
	public ArrayList listProjects(String auth);
	public String getProjectStats(String name, String auth);
}
